<?php

namespace api\modules\backend\models;

use Yii;
use \yii\db\ActiveRecord;

/**
 * Apply Model
 *
 * @author Fong <xiaofeng.zhang@suppernovachina.com>
 */
class Apply extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%apply}}';
    }

    /**
     * @inheritdoc
     */
    public static function primaryKey()
    {
        return ['apply_id'];
    }

    /**
     * Define rules for validation
     */
    public function rules()
    {
        return [
            [['name', 'credentials', 'credentials_no', 'born', 'gender'], 'required']
        ];
    }
}
